const mongoose = require('mongoose');
module.exports = () => {
    let schema = new mongoose.Schema({
        schoolCnName: String,//学校中文名
        schoolUsName: String,//学校英文名
        studyCountry: String,//就读国家
        schoolNature: String,//学校性质
        degreeType: {
            type: Number,
            default: 1 //性别1本科2硕士3博士
        },
        startTime:Date,//开始日期
        endTime:Date,//毕业时间
        majorCnName:String,//专业中文名称
        majorUsName:String,//专业英文名称
        majorType:String,//专业类别 例如计算机
        certificateUsername:String,//证书用户姓名
        studentId:String,//学生id
        studentPwd:String,//学生id密码
        ssn:String,//证书用户姓名
        schoolWebsite:String,//学校网址
        node:String,//备注
        userId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: 'User'//用户id
        },
        deletedAt: Date,
        createdAt: Date,
        updatedAt: Date,
    }, {collection: 'tbl_leanring_experience'});

    return schema;
    //return mongoose.model('Active', schema);
};